<script setup lang="ts">
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'
import { usePageAuth } from '@/hooks/usePageAuth'
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'

usePageAuth()

onLaunch(() => {
  console.log('App Launch')
})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
})
</script>

<style lang="scss">
@import 'sard-uniapp/index.scss';

page,
.sar-portal {
  // # 基础颜色
  --sar-blue: #0066ff;
  --sar-red: #d2302e;
  --sar-yellow: #ff8200;
  --sar-green: #00b800;
  --sar-cyan: #999999;
}

uni-page-body,
html,
body {
  height: 100%;
  background-color: #fafafa;
}
</style>
